#include "FuzeStdafx.h"
#include <gtest/gtest.h>
#include "Memory/Memory.h"
#include "Memory/sqlite3x.hpp"

class MemoryTest : public testing::Test
{
public:
	virtual void SetUp()
	{
	}

	virtual void TearDown()
	{
	}

	sqlite3x::connection& OpenDB()
	{
		char path[MAX_PATH] = "";
		::GetModuleFileName(NULL, path, 1024);

		string fileName = path;
		string::size_type findPos = fileName.find_last_of('.');
		fileName = fileName.erase(findPos+1) + "db";

		static sqlite3x::connection s_dbConnection(fileName.c_str());
	}
};


TEST_F(MemoryTest, OpenDBTest)
{
 	static sqlite3x::connection s_dbConnection("DataSet.db");
}